home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Mops 2.7 / Mops Manual / Part II.srd / Part II.srd.rsrc / PICT_20.png < prev    next >
Portable Network Graphic  |  1996-01-02  |  126KB  |  816x1056  |  8-bit (256 colors)
Labels: book | bulletin board | earth | plant | reckoner | sky | windowpane
OCR: II-16 Mops General Reference Forward referencing You may find it convenient to create code that sends messages to an object that won't be defined until later in the source code For instance two classes may need to send messages each other, meaning that one of them will have to be referenced before is defined Cases like this can be easily solved by defining Value that will hold the actual address of an object at runtime and compiling late- -bound messages using the Value rather than an object as in example c above You also define a Vect which returns the address of an object when you call Because these usages are so common, Mops allows you to omit thedtraal then using Value or Vect as the receiver Q message, since in this situation only late binding would make sense Thus, we have value ObjA ...